package com.ocom.accesservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.access.EntityMjDeviceInfo;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.MachVo;
import com.ocom.common.vo.accessdevice.CenterMachInfoVo;

import java.util.List;


/**
 * 门禁信息
 */
public interface MjDeviceInfoService extends IService<EntityMjDeviceInfo> {


    Integer getCountByComId(Long companyId);

    List<MachVo> getMachineListOnLoad(Long companyId);

    EntityMjDeviceInfo getMachineInfoByMachNo(Long companyId,String machNo);

    EntityMjDeviceInfo updateMachNameByMachNo(Long  companyId,String machNo, String machName);

    Result updateMachPlace(Long  companyId, String machNo, Long areaNo);

    EntityMjDeviceInfo removeMachPartDb(Long  companyId, String machNo);

    void setDateZone(Long comId);

    //修改机器标志
    void updateMachTip(Long companyId,Long areaNo);

    boolean downloadAll(Long companyId,Long machId);

    boolean canRemoveMach(Long companyId,String machNo);

    // 更改设备参数状态（需下发）（setMachParaState）
    public void SetMachParaState(Long companyId, String machNo, String jobId, Long state);
    // 更改设备参数状态（需下发）（setMachParaState）
    public void SetMachParaState(Long companyId, Long areaId, String jobId, Long state);


    CenterMachInfoVo getCommNumsByComId(Long companyId);


    boolean updateGroupVer(Long companyId);

    boolean updateZoneVer(Long companyId);

}
